{if $menu=='gestaoDeTransferenciasConfirmacao'}
<center><button value=''>Confirmar {$accao}?</button></center>
{else}
<table>
	<tr>
		<th>#</th>
		<th>Emissor</th>
		<th>Destinatário</th>
		<th>Modo de Cobrança</th>
		<th>Valor a enviar</th>
		<th>x</th>
		<th>Câmbio</th>
		<th>=</th>
		<th>Valor a receceber</th>
		<th>Realizado a</th>
		<th>Referência</th>
		<th>Estado Multibanco</th>
		<th>Estado</th>
		<th></th>
	</tr>
{foreach from=$transferencias key=key item=value}
	<tr>
		<td >({$value->id})</td>
		<td>
			<a onclick="menuwindow('Operativo','_response/call.php?get=Operative/pp_frm&CL='+1,800,520,'MnMain');">({$value->emissor}){$value->emissorNome}</a>
		</td>
		<td>
			<a onclick="menuwindow('Operativo','_response/call.php?get=Operative/pp_frm&RC='+1,800,520,'MnMain');">({$value->receptor}){$value->receptorNome}</a>
		</td>
		<td>{$value->modoDeCobranca}</td>
		<td>{$value->valor}&nbsp;{$value->moedaEmissorExtenso}</td>
		<td></td>
		<td>{$value->cambio}</td>
		<td></td>
		<td>{$value->valorAReceber}&nbsp;{$value->moedaReceptorExtenso}</td>
		<td>{$value->tempo}</td>
		<td>{$value->referencia}</td>
		<td>--</td>
		<td>

			{if $value->estado == 0}
			<div style='color:grey;'>Pendente</div>
			{elseif $value->estado == 1}
			<div style='color:black;'>Enviada</div>
			{elseif $value->estado == 2}
			<div style='color:red;'>Cancelado</div>
			{/if}
		</td>

		<td>
			<form action='Modules/site/aprovarTransferencia.php' method='post' name="aprovar{$value->id}" id="aprovar{$value->id}">
				<input type='hidden' name='valor' value='{$value->id}'/>
				<input
					id="aprovar"
					name="Aprovar"
					type="button"
					value='Aprovar'
					onclick="subform('aprovar{$value->id}','app');"
					/>
			</form>
			<form action='Modules/site/aprovarTransferencia.php' method='post' name="cancelar{$value->id}" id="cancelar{$value->id}">
				<input type='hidden' name='valor' value='{$value->id}'/>
				<input
					id="Cancelar"
					name="Cancelar"
					type="button"
					value='Cancelar'
					onclick="subform('cancelar{$value->id}','app');"
					/>
			</form>
		</td>
	</tr>
{/foreach}
</table>
{/if}